package biblioteca.persistencia;


import javax.jdo.annotations.Persistent;
import javax.persistence.Basic;
//import javax.persistence.Column;
import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
import javax.persistence.Id;




@Entity

public class Libro {
	
	@Id
	private String isbn;
	
	@Basic
	private String titulo;
	
	@Basic
	private String autor;
	
	@Basic
	private String Editorial;
	
	@Basic
	private Boolean tieneCD;
	
	@Persistent
    private String content;
	
	public Libro(String isbn, String titulo, String autor, String editorial, Boolean tieneCD, String content) {
		super();
		this.isbn = isbn;
		this.titulo = titulo;
		this.autor = autor;
		Editorial = editorial;
		this.tieneCD = tieneCD;
		this.content=content;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getTitulo() {
		return titulo;
	}

	public void setTitulo(String titulo) {
		this.titulo = titulo;
	}

	public String getAutor() {
		return autor;
	}

	public void setAutor(String autor) {
		this.autor = autor;
	}

	public String getEditorial() {
		return Editorial;
	}

	public void setEditorial(String editorial) {
		Editorial = editorial;
	}

	public Boolean getTieneCD() {
		return tieneCD;
	}

	public void setTieneCD(Boolean tieneCD) {
		this.tieneCD = tieneCD;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}


}

